package com.start.workflow.core;

import com.start.common.enums.StartBaseStringEnum;
import com.start.common.std.StartDisabled;

/**
 * 表单类型
 */
public enum StartActFormType implements StartBaseStringEnum, StartDisabled {
    START_ACT_FROM_PREFIX("流程表单", "start:act:form", true),
    START_ACT_PROC("流程业务主表", "start:act:form:proc", false),
    START_ACT_NODE("流程业务节点表", "start:act:form:proc:task", false),
    ;
    private final String label;
    private final String value;
    private final boolean disabled;


    StartActFormType(String label, String value, boolean disabled) {
        this.label = label;
        this.value = value;
        this.disabled = disabled;
    }

    /**
     * 获取泛型值
     *
     * @return String
     */
    @Override
    public String getValue() {
        return value;
    }

    /**
     * 获取泛型名称
     *
     * @return String
     */
    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public boolean getDisabled() {
        return disabled;
    }
}
